export const formList = [
  {
    key: "url",
    label: "网址",
    placeholder: "请输入",
  },
  {
    key: "title",
    label: "标题",
    placeholder: "请输入",
  },
  {
    key: "username",
    label: "操作人",
    placeholder: "请输入",
  },
  {
    key: "updated_at",
    label: "操作时间",
    type: "dateRange",
    showTime: true,
    placeholder: "请选择",
  },
  {
    key: "type",
    label: "状态",
    type: "slot",
    placeholder: "请选择",
  },
];


export const columns = [
  {
    title: "序号",
    dataIndex: "id",
    // customRender: ({ index }: any) => index + 1,
    width: 80
  },
  {
    title: "网址",
    dataIndex: "url",
  },
  {
    title: "标题",
    dataIndex: "title",
  },
  {
    title: "操作人",
    dataIndex: "user",
    slots: { customRender: "user" },
  },
  {
    title: "操作时间",
    dataIndex: "updated_at",
  },
  {
    title: "状态",
    dataIndex: "type",
    slots: { customRender: "type" },
  },
  {
    title: "操作",
    slots: { customRender: "action" },
    width: 200,
    fixed: 'right'
  },
];
